﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using BartonExtension;
using Cache;
using ProtoBuf;
using Fleck;
using PanGu;
using Microsoft.AspNet.SignalR.Client;

namespace UnitTest
{
    class Test
    {
        public string test1 { get; set; }
        public string test2 { get; set; }
    }
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Connecting...");
            HubConnection conn = new HubConnection("http://localhost:8000");
            var hubProxy = conn.CreateHubProxy("OPNotificationHub");
            conn.Start().Wait();
            Console.WriteLine("connected.");
            Console.WriteLine("Pushing data...");
            hubProxy.Invoke("Push", "teset", "1", "7", 0).Wait();
            Console.WriteLine("Pushed");
            Console.ReadLine();

            CacheTest test = new CacheTest();
            test.Run();
        }
    }
}
